package com.five.community.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Activity {
//    id INT PRIMARY KEY auto_increment COMMENT '编号',
//    vid INT NOT NULL  COMMENT '小区编号',
//    title VARCHAR(20) NOT NULL UNIQUE COMMENT '活动标题',
//    place VARCHAR(20) NOT NULL COMMENT '活动位置',
//    organizer VARCHAR(20) NOT NULL COMMENT '举办单位',
//    start_date TIMESTAMP NOT NULL COMMENT '活动开始时间',
//    end_date TIMESTAMP NOT NULL COMMENT '活动结束时间',
//    create_date TIMESTAMP NOT NULL COMMENT '创建时间',
//    state TINYINT NOT NULL COMMENT '状态，0=可用，1=禁用',
//    FOREIGN KEY(vid) REFERENCES village(id)
    private long id;
    private long vid;
    private String title;
    private String place;
    private String organizer;
    private Date startDate;
    private Date endDate;
    private Date createDate;
    private boolean state;

    public Activity(long vid, String title, String place, String organizer, Date startDate, Date endDate, Date createDate, boolean state) {
        this.vid = vid;
        this.title = title;
        this.place = place;
        this.organizer = organizer;
        this.startDate = startDate;
        this.endDate = endDate;
        this.createDate = createDate;
        this.state = state;
    }
}
